package br.com.engine.resources;

import br.com.engine.componentes.Scene;

public class ScenesDefinition 
{
	private String scene;
	
	public ScenesDefinition( ) { }
	
	public Scene getNewScene( )
	{
		try 
		{
			return (Scene)Class.forName( getScene( ) ).newInstance( );
		} 
		catch( InstantiationException e )
		{
			e.printStackTrace( );
		} 
		catch( IllegalAccessException e )
		{
			e.printStackTrace( );
		} 
		catch( ClassNotFoundException e )
		{
			e.printStackTrace( );
		}
		
		return null;
	}

	public String getScene( )
	{
		return scene;
	}

	public void setScene( String scene )
	{
		this.scene = scene;
	}
}